Only mouse button 1 is supposed to activate button controls; other
mouse buttons should do nothing unless there is a context menu.
Checking the click count is important, since double-clicks will
otherwise look like unpaired button presses.
http://bugzilla.gnome.org/show_bug.cgi?id=593504
{
ShellButtonBox *box = SHELL_BUTTON_BOX (actor);
+ if (event->button != 1 || event->click_count != 1)
+ return FALSE;
+
if (box->priv->held)
return TRUE;
{
ShellButtonBox *box = SHELL_BUTTON_BOX (actor);
+ if (event->button != 1 || event->click_count != 1)
+ return FALSE;
+
if (!box->priv->held)
return TRUE;